<?php 

include '../function.php';

include './Page.class.php';

$files = glob('./*');

var_dump($files);

$total = count($files);

$obj = new Page($total,2);


var_dump(array_slice($files,$obj->start,$obj->limit));


 ?>

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
 	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 	<title>Document</title>
 	<style type="text/css">
		a{
			display: block;
			width: 30px;
			height: 30px;
			margin-left: 10px;
			line-height: 30px;
			border: 1px solid #FF7F27;
			float: left;
			text-decoration: none;
			color: #333;
			text-align: center;
		}
		.current{
			color: #fff;
			background: #FF7F27;
		}
		.next{
			width: 60px;
		}
 	</style>
 </head>
 <body>
 	<?php echo $obj->show(); ?>
 </body>
 </html>

